<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'indiActivity.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="<%=basePath%>JS/jquery-ui-1.11.2/external/jquery/jquery.js"></script>
	<script type="text/javascript" src="<%=basePath%>JS/jquery-ui-1.11.2/jquery-ui.js"></script>
	<script type="text/javascript" src="<%=basePath%>JS/jquery-validation-1.13.1/dist/jquery.validate.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=basePath%>JS/jquery-ui-1.11.2/jquery-ui.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>CSS/style.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>JS/jquery-validation-1.13.1/demo/css/screen.css">
  

  </head>
  
  <body>
    <div id="head-search">
   	 		<i class="home-path"></i>
   	 		<span class="path-font">活动管理&nbsp;&nbsp;>>&nbsp;&nbsp;查看个人活动</span>
   	</div>
   	<div class="mainbody">
   		<div id="indiActList">
   		</div>
   	</div>
  </body>
  <script>
  	$(function(){
  		$.ajax({
  			url:'<%=basePath%>getMyIndiActAction',
  			type:'get',
  			dataType:'json',
  			timeout:1000,
  			beforeSend:beforeFun,
  			error:errorFun,
  			success:sucFun
  		});
  		function beforeFun(){}
  		function errorFun(){}
  		function sucFun(datas){
  			var json = eval(datas);
  			$.each(json,function(index){
  				$("#indiActList").html($("#indiActList").html()+"<div class='divrow'>"+
  									json[index].individualTheme+
  								"<br>详细："+json[index].individualContent+
  								"<br>时间："+json[index].individaulDate+
  								"<br>备注："+json[index].individaulAddittion+
  									"</div>");
  			});
  		}
  	});
  </script>
</html>
